import Vue from "vue";
import Vuex from "vuex";

// 1.安装插件
Vue.use(Vuex);

// 2.创建对象
const state = {
  cartList:[],
};
const store = new Vuex.Store({
  state,
});

// 3.导出store独享
export default store;
